import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';

import { AppComponent } from './app.component';
import { HelloComponent } from './hello/hello.component';
import {FormsModule} from "@angular/forms";
import { HomeComponent } from './home/home.component';
import { TitleComponent } from './title/title.component';

// 服务需要手动注册
import {ListService} from './serves/list.service'
import { AppRoutingModule } from './app-routing.module';
import { ListComponent } from './list/list.component';


@NgModule({
  declarations: [
    AppComponent,
    HelloComponent,
    HomeComponent,
    TitleComponent,
    ListComponent
  ],

  //声明组件需要用到的类
  imports: [
    BrowserModule,
    FormsModule,
    AppRoutingModule
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }
